﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Design;
using System;
using System.Collections.Generic;
using System.Text;

namespace QBZ.Evaluation.Repositories.DataAccess
{
    public class DesignTimeDbContextFactory : IDesignTimeDbContextFactory<dbEvaluationContext>
    {
        public dbEvaluationContext CreateDbContext(string[] args)
        {
            var builder = new DbContextOptionsBuilder<dbEvaluationContext>();
            builder.UseSqlServer("Server=123.206.90.82,1433;Database=dbEvaluation;user id=sa;pwd=Qb123456.");
            return new dbEvaluationContext(builder.Options);
        }
    }
}
